package com.guomao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
//@RequestMapping("/mca")
public class MyControllerA {


    @RequestMapping("/index")
    public String index() {

        return "index";
    }

    //    @GetMapping("/handle")
    @PostMapping("/handle")
    @ResponseBody
    public String handle() {

//        System.out.println("handle.....");
//        return "index";

        return "handle.....!!!...";
    }


    @GetMapping("/handleGet")
    @ResponseBody
    public String handleGet() {

        return "handleing get...";
    }

    @PostMapping("/handlePost")
    @ResponseBody
    public String handlePost() {

        return "handleing post...";
    }

    @PutMapping("/handlePut")
    @ResponseBody
    public String handlePut() {

        return "handleing put...";
    }

    @DeleteMapping("/handleDelete")
    @ResponseBody
    public String handleDelete() {

        return "handleing delete...";
    }

/*    @PostMapping("/handle3")
    public String handle3() {

        return "index";
    }

    @RequestMapping("/handle4")
    public String handle4() {

        return "index";
    }

    @RequestMapping("/handle5")
    public String handle5() {

        return "index";
    }*/

}
